package com.lank.gateway.enums;

/**
 * 系统异常枚举
 *
 * @author 郑海宾
 * @since 2020-08-26 16:11:37
 */
public enum GatewaySystemEnum {


    /**
     * 用户信息为空
     */
    ACCOUNT_INTO_IS_NULL("ACCOUNT_INTO_IS_NULL", "账户对象为空......"),
    AUTHENTICATION_CREDENTIALS_NOT_FOUND_EXCEPTION("AUTHENTICATION_CREDENTIALS_NOT_FOUND_EXCEPTION", "未找到身份验证凭据"),
    INVALID_BEARER_TOKEN_EXCEPTION("INVALID_BEARER_TOKEN_EXCEPTION", "无效的身份令牌，重新登录试试！"),
    VALID_ERROR("VALID_ERROR", "你传的参数有问题，请检查检查！"),
    ;

    private final String code;

    private final String message;

    GatewaySystemEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
